package cn.itsource.user.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.user.domain.Logininfo;
import cn.itsource.user.domain.User;
import cn.itsource.user.dto.LoginDto;

import java.util.List;

public interface LogininfoMapper extends BaseMapper<Logininfo>{
    void patchDel(List<Long> ids);

    Logininfo loadByUser(LoginDto loginDto);

    /**
     * 通过userId级联查询loginInfo
     * @param user_id
     * @return
     */
    Logininfo loadByUserId(Long user_id);
}
